export default [
    {
        path: "/",
        redirect: "/component",
    },
    {
        path: "/component",
        name: "component",
        component: () => import("@/views/index/index.vue"),
        redirect: "/component/chat",
        children: [
            {
                path: "chat",
                name: "chat",
                component: () => import("@/views/components/chat/index.vue")
            },
            {
                path: "expand",
                name: "expand",
                component: () => import("@/views/components/expand/index.vue")
            },
            {
                path: "badge",
                name: "badge",
                component: () => import("@/views/components/badge/index.vue")
            }
        ]
    },
    {
        path:"/function",
        name:"function",
        component:()=>import("@/views/index/index.vue"),
        redirect: "/function/crud",
        children: [
            {
                path: "crud",
                name: "crud",
                component: () => import("@/views/function/crud.vue")
            },
            {
                path: "priceNumber",
                name: "priceNumber",
                component: () => import("@/views/function/priceNumber.vue")
            }
        ]
    },
    {
        path:"/fish",
        name:"fish",
        component:()=>import("@/views/index/index.vue"),
        redirect: "/fish/saolei",
        children: [
            {
                path: "saolei",
                name: "saolei",
                component: () => import("@/views/fish/saolei.vue")
            },
            {
                path: "game2048",
                name: "game2048",
                component: () => import("@/views/fish/game2048.vue")
            },
            {
                path: "xiaoxiaole",
                name: "xiaoxiaole",
                component: () => import("@/views/fish/xiaoxiaole/index.vue")
            },
        ]
    }
]